<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Accesslevel {
	var $CI;
	var $load;

	function __construct()
	{
		$this->CI = get_instance();
		$this->CI->load->model('Accesslevelmodel');
	}

	function check () {
		$this->CI->Accesslevelmodel->request_url = $this->CI->uri->uri_string();
		if ($this->CI->Accesslevelmodel->get()) {
			return ;
		} else {
			redirect('/');
		}
	}
}